package both.map.mapView;

import java.util.EventObject;

public class MapEvent extends EventObject {
	
	private static final long serialVersionUID = 1L;

	private int x, y, a, b;
	private boolean area;
	
	public MapEvent(Object source, int x, int y) {
		super(source);
		this.setX(x);
		this.setY(y);
		area = false;
	}
	
	public MapEvent(Object source, int x, int y, int a, int b) {
		super(source);
		this.setX(x);
		this.setY(y);
		this.setA(a);
		this.setB(b);
		area = true;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getX() {
		return x;
	}

	public void setY(int y) {
		this.y = y;
	}

	public int getY() {
		return y;
	}

	public void setArea(boolean area) {
		this.area = area;
	}

	public boolean isArea() {
		return area;
	}

	public void setB(int b) {
		this.b = b;
	}

	public int getB() {
		return b;
	}

	public void setA(int a) {
		this.a = a;
	}

	public int getA() {
		return a;
	}	
}
